home *** CD-ROM | disk | FTP | other *** search
- global gNoPreLoadFrames, gNoPreLoadRefNames, gWorld, gOBJECTS
-
- on makeChildNameNoPreLoadList2 RefName
- set thisOBJ to getaProp(gOBJECTS, RefName)
- if not voidp(getaProp(thisOBJ, #Children)) then
- set childNameList to getaProp(thisOBJ, #Children)
- repeat with childName in childNameList
- set childObj to getaProp(gOBJECTS, childName)
- if not voidp(getaProp(childObj, #cast)) then
- addUnique(gNoPreLoadRefNames, childName)
- end if
- if not voidp(getaProp(childObj, #Children)) then
- makeChildNameNoPreLoadList(childName)
- end if
- end repeat
- end if
- end
-
- on makeChildNameNoPreLoadList RefName
- set thisOBJ to getaProp(gOBJECTS, RefName)
- if not voidp(getaProp(thisOBJ, #Children)) then
- set childNameList to getaProp(thisOBJ, #Children)
- repeat with childName in childNameList
- set childObj to getaProp(gOBJECTS, childName)
- if not voidp(getaProp(childObj, #cast)) then
- addUnique(gNoPreLoadRefNames, childName)
- end if
- if not voidp(getaProp(childObj, #Children)) then
- makeChildNameNoPreLoadList(childName)
- end if
- if not voidp(getaProp(childObj, #SpecialChild)) then
- makeChildNameNoPreLoadList(childName)
- end if
- end repeat
- end if
- if not voidp(getaProp(thisOBJ, #SpecialChild)) then
- set specialchildPropList to getaProp(thisOBJ, #SpecialChild)
- repeat with i = 1 to count(specialchildPropList)
- set thisCondition to getPropAt(specialchildPropList, i)
- set specialChildRefNameList to getaProp(specialchildPropList, thisCondition)
- if count(specialChildRefNameList) > 0 then
- repeat with specialChildRefName in specialChildRefNameList
- set specialChildObj to getaProp(gOBJECTS, specialChildRefName)
- if not voidp(getaProp(specialChildObj, #cast)) then
- addUnique(gNoPreLoadRefNames, specialChildRefName)
- end if
- if not voidp(getaProp(specialChildObj, #SpecialChild)) then
- makeChildNameNoPreLoadList(specialChildRefName)
- end if
- if not voidp(getaProp(specialChildObj, #Children)) then
- makeChildNameNoPreLoadList(specialChildRefName)
- end if
- end repeat
- end if
- end repeat
- end if
- end
-
- on setNoPreLoadRefNameList
- set gNoPreLoadRefNames to []
- repeat with frame in gNoPreLoadFrames
- set refNameList to getaProp(getaProp(gWorld, frame), #objects)
- if count(refNameList) > 0 then
- repeat with RefName in refNameList
- makeChildNameNoPreLoadList(RefName)
- end repeat
- end if
- end repeat
- put gNoPreLoadRefNames
- end
-
- on initNoPreLoadFrameList
- set gNoPreLoadFrames to []
- set gNoPreLoadFrames to [#A09, #A13, #B16A, #B28A, #B31A, #C09, #C11, #D22, #D10, #E04, #F69, #G11C, #G11D, #G20, #H12]
- end
-